package com.servo.controller;


import com.servo.model.SkuInfoDO;
import com.servo.service.SkuInfoService;
import com.servo.utils.JsonData;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * sku_info 前端控制器
 * </p>
 *
 * @author fwj
 * @since 2022-01-07
 */

@Api(tags = "商品信息api")
@RestController
@RequestMapping("/api/skuInfo/")
public class SkuInfoController {

    @Autowired
    private SkuInfoService skuInfoService;

    @PostMapping("save")
    public JsonData save(@RequestBody SkuInfoDO skuInfoDO) {
        return skuInfoService.save(skuInfoDO);
    }


}

